import request from '@/utils/request'

// 菜单
export function fetchMenuList() {
  return request({
    url: '/backend/menu/list',
    method: 'get'
  })
}

export function fetchCreateMenu(data) {
  return request({
    url: '/backend/menu/create',
    method: 'post',
    data: data
  })
}

export function fetchUpdateMenu(data) {
  return request({
    url: '/backend/menu/update',
    method: 'post',
    data: data
  })
}
